package com.usian.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/*
 * 作者：m鹏h
 * 时间；2023/8/9 16:26
 * 描述：
 **/
@Data
@ToString
@TableName(value = "compe")
public class Compe {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String compeName;

    private String compePhoto;

    private String compeTypeId;

    private String labId;
    private String bmPeoNum;
    private String sche;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endTime;

    private String compeSort;
    private String compeStatus;
    private String jsType;
    private String msPoster;
    private String takePeoMax;
    private String csPeo;
    private String qydt;

    @TableField(exist = false)
    private String compeTypeName;

    private List<Que> queList;

    private List<Lab> labList;

    private Integer counts;

}
